package com.example.extenddemo.extendsDemo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class DemoListener implements ApplicationListener<Demo1> {
    @Override
    public void onApplicationEvent(Demo1 event) {
        log.info("DemoListener 接收到消息为{}",event.getMessage());
    }
}
